def main():
    f=open("TextFile.txt", 'r')
    for line in f:
        print(line.strip('\n'))
    f.close()
    
    f=open("TextFile.txt", 'w')     
    for line in range(4):
        f.write(input("enter word: ") + '\n')
        
    f.close()
    
if __name__ == "__main__":
    main()